import request from '@/utils/request'

// 查询优惠券领取列表
export function listCouponsMember(query) {
  return request({
    url: '/coupons/couponsMember/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券领取详细
export function getCouponsMember(id) {
  return request({
    url: '/coupons/couponsMember/' + id,
    method: 'get'
  })
}

// 新增优惠券领取
export function addCouponsMember(data) {
  return request({
    url: '/coupons/couponsMember',
    method: 'post',
    data: data
  })
}

// 修改优惠券领取
export function updateCouponsMember(data) {
  return request({
    url: '/coupons/couponsMember',
    method: 'put',
    data: data
  })
}

// 删除优惠券领取
export function delCouponsMember(id) {
  return request({
    url: '/coupons/couponsMember/' + id,
    method: 'delete'
  })
}
// 删除优惠券领取
export function logicDelCouponsMember(id) {
  return request({
    url: '/coupons/couponsMember/' + id,
    method: 'delete'
  })
}

// 导出优惠券领取
export function exportCouponsMember(query) {
  return request({
    url: '/coupons/couponsMember/export',
    method: 'get',
    params: query
  })
}
